<?php
return array(
	'attributeLabels' => array(
		'shop_name' => '店铺名称',
		'profile' => '详细资料'
	),
	
	'cascade' => array(
		'profile',
	),
	
	'relations' => array(
		'profile' => array(ActiveRecord::HAS_ONE, 'ShopProfile', 'shop_id'),
		'worker'=>array(ActiveRecord::BELONGS_TO, 'ProviderAccount', 'worker_id'),
	),
	'behaviors' => array(
		'userScope' => array(
			'class' => 'coms.behaviors.userScopes.DefaultScope',
			'relatedFields' => array(
				'worker_id',
			),
			'autoRun' => false,
		),
		'autoCreate' => array(
			'class' => 'lib.behaviors.auto.CCreateTime',
		),
	),	
	'_import' => array(
		array('*', 'models.ActiveRecord//*'),
	),
);